﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="templet_list.aspx.cs" Inherits="Smy.Web.Admin.settings.templet_list" %>

<%@ Import Namespace="Smy.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>模板管理</title>
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    <script type="text/javascript">
        $(function () {
            //只能选中一项
            $(".checkall input").click(function () {
                $(".checkall input").prop("checked", false);
                $(this).prop("checked", true);
            });
            //管理模板检测
            $("#btnManage").click(function () {
                if ($(".checkall input:checked").size() < 1) {
                    top.dialog({
                        title: '提示',
                        content: '对不起，请选中您要管理的模板！',
                        okValue: '确定',
                        ok: function () { }
                    }).showModal();
                    return false;
                }
            });
        });
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>界面管理</span>
            <i class="arrow"></i>
            <span>模板管理</span>
        </div>
        <!--/导航栏-->

        <!--工具栏-->
        
        <!--/工具栏-->

        <!--列表-->
        <div class="table-container">
            <asp:Repeater ID="rptList" runat="server" onitemcommand="rptList_ItemCommand">
                <HeaderTemplate>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                        <tr>
                            <th width="8%">选择</th>
                            <th align="left" width="16%">模板名称</th>
                            <th align="left" width="10%">目录名</th>
                            <th width="12%">作者</th>
                            <th width="12%">创建日期</th>
                            <th width="12%">版本号</th>
                            <th align="center" width="8%">适用版本</th>
                            <th align="center" width="8%">排序</th>
                            <th width="10%">操作</th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center">
                            <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                            <asp:HiddenField ID="hideSkinName" runat="server" Value='<%#Eval("skinname")%>' />
                            <asp:HiddenField ID="hideSitePath" runat="server" Value='<%#Eval("sitepath")%>' />
                        </td>
                        <td><a href="templet_file_list.aspx?skin=<%#Eval("sitepath")%>"><%#Eval("skinname")%></a></td>
                        <td><a href="templet_file_list.aspx?skin=<%#Eval("sitepath")%>" target="_blank"><%#Eval("sitepath")%></a></td>
                        <td align="center"><%#Eval("author")%></td>
                        <td align="center"><%#Eval("createdate")%></td>
                        <td align="center"><%#Eval("version")%></td>
                        <td align="center"><%#Eval("fordntver")%></td>
                        <td align="center"><asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort")%>' CssClass="sort" onkeydown="return checkNumber(event);" /></td>
                        <td align="center"><a href="templet_file_list.aspx?skin=<%#Eval("sitepath")%>">管理</a></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"9\">暂无记录</td></tr>" : ""%>
  </table>
                </FooterTemplate>
            </asp:Repeater>
        </div>
        <!--/列表-->

    </form>

</body>
</html>